﻿<%@ Page Title="Topics" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true" CodeFile="Topics.aspx.cs" Inherits="Posts_Topics" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc2" %>

<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc2:Header ID="Header1" runat="server" />
    <div class="tabPage">
        <asp:Panel ID="actions" CssClass="actions" runat="server">
            <asp:LinkButton ID="lnkEdit" Text="Edit" CssClass="edit" runat="server" 
                onclick="lnkEdit_Click" />
            <asp:LinkButton ID="lnkSave" Text="Save" CssClass="save"  runat="server" 
                onclick="lnkSave_Click" />
            <asp:LinkButton ID="lnkCancel" Text="Cancel" CssClass="cancel" runat="server" 
                onclick="lnkCancel_Click" />
        </asp:Panel>
        <acms:AcmsDataList ID="dlTopicGroups" DataSourceID="dsTopicGroups" 
            DataKeyFields="Id" runat="server" onitemcreated="dlTopicGroups_ItemCreated">
            <ItemStyle CssClass="itemPanel" />
            <ItemTemplate>
                <ajax:Accordion ID="itemAccordian" DataSource="<%#new object[]{Container.DataItem} %>" SkinID="SubTitle" runat="server">
                    <HeaderTemplate><%#Eval("Name") %></HeaderTemplate>
                    <ContentTemplate><%#Eval("Notes") %></ContentTemplate>
                </ajax:Accordion>
                <div class="box">
                    <asp:CheckBoxList ID="itemCheckboxList" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="horizontalCheckBoxList" DataTextField="Name" DataValueField="Id" OnDataBinding="itemCheckboxList_DataBinding" OnDataBound="itemCheckboxList_DataBound" runat="server" />
                </div>
            </ItemTemplate>
        </acms:AcmsDataList>
    </div>
    <telerik:RadAjaxManager ID="ajaxManager" DefaultLoadingPanelID="loading" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="actions">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="actions" LoadingPanelID="emptyloading" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="loading" SkinID="Loading" Transparency="50"  runat="server">
        <img alt="Loading..." src="../icons/loading1.gif" style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxLoadingPanel ID="emptyloading" Transparency="1000" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <acms:TopicGroupDataSource ID="dsTopicGroups" OnSelectData="dsTopicGroups_SelectData" runat="server" />
</asp:Content>

